package com.invite.me.app;


import android.app.Application;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;

import com.invite.me.wigets.UmPushHelper;


/***
 * App 管理类
 */
public class MyApplication extends Application {
    public static Context mCtontext;
    private static MyApplication app;



    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        mCtontext = getApplicationContext();
        UmPushHelper.getInstance().init();//初始化友盟推送
    }

    public static Context getmCtontext() {
        return mCtontext;
    }

    public static MyApplication getMyApplication() {
        return app;
    }
    //当前activity
    public static AppCompatActivity mCurrentActivity;

    public static AppCompatActivity getmCurrentActivity() {
        return mCurrentActivity;
    }

    public static void setmCurrentActivity(AppCompatActivity mCurrentActivity) {
        MyApplication.mCurrentActivity = mCurrentActivity;
    }

}
